Google Calendar
Introducing the Google Calendar Toolkit, a powerful integration for SuperAGI. With the Google Calendar toolkit, you have the ability to do the following:
Features
- Create Calendar Events
- List your Calendar Events
- Fetch an event from your Calendar
- Delete Calendar Events
Quickstart Guide:
In order to get started with integrating Google Calendar with SuperAGI, you need to do the following:
API Creation and OAuth Consent Screen
- Go to Google Developer Console: https://console.cloud.google.com/ & Create a new project. If you’re having an existing project, you can proceed with that as well:
- After the project is created/you’re in your selected project, head to “APIs and Services”
- Click on “ENABLED APIS AND SERVICES” and search for “Google Calendar”
- Enable the API
- Once the API is Enabled, go to “OAuth Consent Screen”
- Select your User Type as “External” and click on "Create"
- Fill in the required details such as the App Information, App Domain, Authorized Domain, and Developer contact information. Once filled in, click “Save and Continue”
- On the next page, you don’t need to select the scopes. Proceed to “save and continue” and at the final page, review the process and click “Back to Dashboard”. With this, you’ve created your OAuth Consent Screen for Google Calendar.
- You can go ahead and click the “Publish App”
Configuring endpoints & obtaining Client ID and Client Secret Key
In order to obtain the Client ID and Secret ID, you need to do the following steps:
- Go to “Credentials” Page
- Click on “Create Credentials” and click on “OAuth Client ID”
- Once you click on OAuth Client ID, choose the type of application as “Web Application” and give it a name of your choice
- Create JavaScript Origins and add the following details as shown in the image:
- Go to Authorized redirect URIs and add the following URIs:
https://app.superagi.com/api/google/oauth-tokens
http://localhost:3000/api/google/oauth-tokens
- Once you’re completed with adding the Authorized redirect URIs, you can click “Create” to obtain the Client ID and Client Secret Key
- Copy the Client ID and Secret Key and save it in a file.
Configuring your Client ID, Secret Key and Authenticating Calendar with SuperAGI
Once the ClientID and Secret Key are obtained, you can configure and authorize Calendar to be used with SuperAGI by following these steps:
- Add your Client ID and Client Secret Key on the toolkit page and click on “Update Changes”
- Click on “Authenticate Tool” - which will now take you to the OAuth Flow.
Once the OAuth Authentication is complete, you can now start using SuperAGI Agents with Google Calendar!